<?php echo $this->Html->script('JqueryTeam'); ?>
<div class="teams index">
	<h2><?php echo __('Teams'); ?></h2>
	<table cellpadding="0" cellspacing="0" id="team" class="search">
	<thead>
	<tr>
			<th><?php echo $this->Paginator->sort('name'); ?></th>
			<th><?php echo $this->Paginator->sort('description'); ?></th>
			<th><?php echo $this->Paginator->sort('email'); ?></th>
			<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	</thead>
	<tbody>
	<?php
                if (!empty($teams)){
                    foreach ($teams as $team):
                ?>

	<tr>
		<td><?php echo $this->Html->link($team['Team']['name'], array('controller' => 'teams', 'action' => 'view', $team['Team']['id'])); ?></td>
		<td><?php echo h($team['Team']['team_desc']); ?>&nbsp;</td>
		<td><?php echo h($team['Team']['email']); ?>&nbsp;</td>
	</tr>
    <?php
                                endforeach;
                            }else{
                            ?>
                            <tr>
                                <td>No Data Found</td>
                            </tr>
                            <?php }?>
	</tbody>
	</table>
	<p>

                    	<div class="addbuttons" >
							<ul>
								<li><?php echo $this->Html->link(__('New Team'), array('controller' => 'teams', 'action' => 'add')); ?> </li>
							</ul>
						</div>
            	<p>

    	<p>

</div>
